public class xian_zhe_sort {
    public static void main(String[] args){
        int[] arr = {13,4,6,2,6,7,38,2,9,45,63};
        for(int i = 0;i<arr.length-1;i++) {
            int key = i;
            for (int j = i + 1; j < arr.length; j++) {
                if (arr[key] > arr[j]) {
                    key = j;
                }
            }
            int num = arr[key];
            arr[key] = arr[i];
            arr[i] = num;
        }
        for(int i = 0;i<arr.length;i++){
            System.out.print(arr[i]+" ");
        }
    }
}
